package xyz.bali16.module.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xyz.bali16.module.blog.entity.Article;
import xyz.bali16.module.blog.model.vo.blog.ArticleConditionVo;

import java.util.List;

/**
 * 
 * @author bali2 on 24/10/2021.
 * @version 1.0
 */
@Mapper
public interface ArticleMapper extends BaseMapper<Article> {
    /**
     * 分页查询，关联查询文章标签、文章类型
     *
     * @param vo
     * @return
     */
    List<Article> findPageByCondition(@Param("page") IPage<Article> page, @Param("vo") ArticleConditionVo vo);
    List<Article> findByCondition(@Param("vo") ArticleConditionVo vo);
    Integer queryCount();

}